<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	// 网站地址
	String netPath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort();
%>
<table width="100%" border="0" height="100%" cellpadding="0"
	cellspacing="0" class="yhgltable_1">
	<thead>
		<tr>
			<th>产品ID</th>
			<th>产品名称</th>
			<th>发行银行</th>
			<th title="对推荐的产品在网站首页进行排序，数值越大越靠前">推荐排序</th>
			<th title="显示在网站首页的产品">推荐</th>
			<th >修改操作</th>
		</tr>
	</thead>
	<input type="hidden" name="pageSum" value="${pageSum}" id="pageSum" />
	<c:forEach items="${bankFinanceProduct.data}" var="product"
		varStatus="stats">
		<c:if test="${stats.index%2==0}">
			<tr>
		</c:if>
		<c:if test="${stats.index%2==1}">
			<tr class="gray">
		</c:if>
		<td width="7%"><p>
				<input type="checkbox" name="group_box" value="${product.id}" />
				${product.id}
			</p>
		</td>
		<td width="10%" style><a href="<%=basePath%>/product/${product.id}" title="${product.productName}" style="width: 300px;display: block;margin-left: 0px;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;
text-overflow: ellipsis;">${product.productName}</a>
		</td>
		<td width="10%"><c:if test="${product.bankId == 1}">工商银行</c:if> 
		   <c:if test="${product.bankId == 2}">中国农业银行</c:if> 
		   <c:if
				test="${product.bankId == 3}">中国银行</c:if> 
				<c:if
				test="${product.bankId == 4}">中国建设银行</c:if>
				 <c:if
				test="${product.bankId == 5}">交通银行</c:if> 
				<c:if
				test="${product.bankId == 6}">招商银行</c:if> 
				<c:if
				test="${product.bankId == 7}">汇丰银行（中国）</c:if>
				 <c:if
				test="${product.bankId == 8}">中信银行</c:if> 
				<c:if
				test="${product.bankId == 9}">中国光大银行</c:if> 
				<c:if
				test="${product.bankId == 10}">华夏银行</c:if> 
				<c:if
				test="${product.bankId == 11}">广发银行</c:if> 
				<c:if
				test="${product.bankId == 12}">平安银行</c:if>
				 <c:if
				test="${product.bankId == 13}">浦发银行</c:if> 
				<c:if
				test="${product.bankId == 14}">兴业银行</c:if>
				 <c:if
				test="${product.bankId == 15}">中国民生银行</c:if>
				 <c:if
				test="${product.bankId == 16}">徽商银行</c:if>
				 <c:if
				test="${product.bankId == 17}">中国邮政储蓄银行</c:if>
				 <c:if
				test="${product.bankId == 18}">北京银行</c:if> 
				<c:if
				test="${product.bankId == 19}">包商银行</c:if> 
				<c:if
				test="${product.bankId == 20}">恒丰银行</c:if>
		</td>
		<td width="12%"><img alt="置顶升级"
			src="<%=basePath%>images/arrow_up.png" class="ifTop"
			style="width:20px;" title="置顶升级" onclick="makeTop(${product.id})" />
			<img alt="置顶降级" src="<%=basePath%>images/arrow_down.png"
			class="ifTop" title="置顶降级" style="width:20px;"
			onclick="makeLower(${product.id})" /> <input type="text"
			id="iftop_${product.id}" value="${product.weightValue}"
			readonly="readonly" style="width:10px;" /></td>
		<td width="12%"><c:choose>
				<c:when test="${product.ifRecommend==1}">
					<img alt="取消推荐" src="<%=basePath%>images/commends1.png"
						id="recommendImg_${product.id}" style="width:20px;cursor: pointer"
						title="取消推荐" onclick="changeRecommendStat(${product.id})" />
				</c:when>
				<c:otherwise>
					<img alt="推荐" src="<%=basePath%>images/commends0.png"
						id="recommendImg_${product.id}" style="width:20px;cursor: pointer"
						title="推荐" onclick="changeRecommendStat(${product.id})" />
				</c:otherwise>
			</c:choose> <input type="hidden" id="recommendItem_${product.id}"
			value="${product.ifRecommend}" style="width:10px;" /></td>
		<td width="5%"><%-- <c:if test="${product.ifShow == 1}"><input id="ifShow_${product.id}" type="hidden" value="0"/><a onclick="makeShow(${product.id})">显示状态</a></c:if>
			<c:if test="${product.ifShow != 1}"><input id="ifShow_${product.id}" type="hidden" value="1"/><a onclick="makeShow(${product.id})">隐藏状态</a></c:if> --%>
		 <a style="
margin-right: 10px;
border: 1px solid #BBB;
background: url(../images/btn_bg.gif) repeat-x;
padding: 0px 13px;
height: 28px;
display: block;
line-height: 28px;
color: #666;" href="javascript:void(0)" onclick="modify('${product.id}')"><img
							src="<%=basePath%>images/xg.gif" />修改</a>
		</td>
		</tr>
	</c:forEach>
</table>
